package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.RecordBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.WITHDRAW_RECORD)
public class ConnWithDrawRecord extends BaseAsyPost<RecordBean> {

    public String member_id;
    public int page;

    public ConnWithDrawRecord(String member_id, int page, AsyCallBack<RecordBean> asyCallBack) {
        super(asyCallBack);
        this.member_id = member_id;
        this.page = page;
    }

    @Override
    protected RecordBean parser(JSONObject object) throws Exception {
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");


        Gson gson = new Gson();

        RecordBean loginBean = new RecordBean();

        loginBean = gson.fromJson(object.toString(), RecordBean.class);


        return loginBean;


    }
}



